import request from '@/utils/request'

// 查询服务套餐列表
export function listCombo(query) {
  return request({
    url: '/service/combo/list',
    method: 'get',
    params: query
  })
}

// 查询服务套餐详细
export function getCombo(comboId) {
  return request({
    url: '/service/combo/' + comboId,
    method: 'get'
  })
}

// 新增服务套餐
export function addCombo(data) {
  return request({
    url: '/service/combo',
    method: 'post',
    data: data
  })
}

// 修改服务套餐
export function updateCombo(data) {
  return request({
    url: '/service/combo',
    method: 'put',
    data: data
  })
}

// 删除服务套餐
export function delCombo(comboId) {
  return request({
    url: '/service/combo/' + comboId,
    method: 'delete'
  })
}
